import QtQuick 2.0
import QtGraphicalEffects 1.0

Item {
    width: parent.width
    height: cartao.height
    default property alias content: child.children
    property alias title: title.text

    DropShadow {
        anchors.fill: cartao
        horizontalOffset: 0
        verticalOffset: 2
        radius: 8
        samples: 16
        color: "#50000000"
        source: cartao
        transparentBorder: true
    }

    Rectangle {
        id: cartao
        width: parent.width
        height: cardBody.height + (cardBody.anchors.margins * 2)
        color: "#ffffff"

        Column {
            id: cardBody
            anchors.top: parent.top
            anchors.left: parent.left
            anchors.right: parent.right
            anchors.margins: 6
            spacing: anchors.margins

            Text {
                id: title
                text: qsTr("TITULO")
                font.bold: true
                font.pixelSize: 20
            }

            Rectangle {
                id: separator
                height: 1
                width: parent.width
                color: "#bbbbbb"
            }

            Column {
                id: child
                width: parent.width
            }

        }

    }
}

